/*
package com.wang.rabbitmq.springboot;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

*/
/**
 * @author: wang
 * @date: 2021/8/4 10:50
 * @description:
 *//*

@Component
public class TopicReceive {

    @RabbitListener(queues = {"topicQueue1"})
    public void getTopic1(String topic){
        System.out.println("topicQueue1 接收到消息");
        System.out.println(topic);
    }

    @RabbitListener(queues = {"topicQueue2"})
    public void getTopic2(String topic){
        System.out.println("topicQueue2 接收到消息");
        System.out.println(topic);
    }

    @RabbitListener(queues = {"topicQueue3"})
    public void getTopic3(String topic){
        System.out.println("topicQueue3 接收到消息");
        System.out.println(topic);
    }

}
*/
